from urllib import parse
query_string={'wd':'爬虫'}
result=parse.urlencode(query_string)
url='http://www.baidu.com/s?{}'.format(result)

word=input('Content to search: ')
query_string=parse.quote(word)
url='http://www.baidu.com/s?wd={}'.format(query_string)

string='%E7%88%AC%E8%99%AB'
result=parse.unquote(string)
